import HttpConfig from '@/bean/HttpConfig'
import httpService from '@/common/httpService'

export const getCusList = (params, fn1, fn2) => {
  return httpService(new HttpConfig({
    url: '/cus/list',
    method: 'post',
    params: params,
    reminder: false,
    success: fn1,
    error: fn2
  }))
}
export const getCusQuery = (params, fn1, fn2) => {
  return httpService(new HttpConfig({
    url: '/cus/query',
    method: 'post',
    params: params,
    reminder: false,
    success: fn1,
    error: fn2
  }))
}
export const disableCusList = (params, fn1, fn2) => {
  return httpService(new HttpConfig({
    url: '/cus/disableList',
    method: 'post',
    params: params,
    reminder: false,
    success: fn1,
    error: fn2
  }))
}
export const getIndexList = (params, fn1, fn2) => {
  return httpService(new HttpConfig({
    url: '/cus/indexList',
    method: 'post',
    params: params,
    reminder: false,
    success: fn1,
    error: fn2
  }))
}
